package com.taotao.cart.bean;

public class UserThreadLocal {
	//利用本地线程对象对User进行传参
	private static ThreadLocal<User> THREAD_LOCAL = new ThreadLocal<User>();
	
	public static void set(User user){
		THREAD_LOCAL.set(user);
	}
	
	public static User get(){
		return THREAD_LOCAL.get();
	}
	
}
